package com.tianma315.core.scanrecord.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.tianma315.core.common.base.CoreServiceImpl;
import com.tianma315.core.scanrecord.dao.ScanRecordDao;
import com.tianma315.core.scanrecord.domain.ScanRecordDO;
import com.tianma315.core.scanrecord.service.ScanRecordService;
import org.springframework.stereotype.Service;




/**
 * 
 * <pre>
 * 微信用户查询记录(用于计算用户类型等)
 * </pre>
 * <small> 2020-02-25 14:27:29 | Aron</small>
 */
@Service
public class ScanRecordServiceImpl extends CoreServiceImpl<ScanRecordDao, ScanRecordDO> implements ScanRecordService {

    @Override
    public ScanRecordDO getScanRecordByCode(String code) {
        EntityWrapper<ScanRecordDO> wrapper = new EntityWrapper<>();
        wrapper.eq("code",code);
        ScanRecordDO scanRecordDO = selectOne(wrapper);
        return scanRecordDO;
    }
}
